#if !defined(AFX_NEWWND_H__CD195C4A_CEAE_415E_83A3_AE063ADF0ABC__INCLUDED_)
#define AFX_NEWWND_H__CD195C4A_CEAE_415E_83A3_AE063ADF0ABC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// NewWnd.h : header file
//
#include "stdafx.h"
#include "MyImageButton.h"

class CNewWnd_PropertyInfo : public CPropertyInfo
{
public:
	DWORD m_Version, m_LastVersion;
	CString  m_Caption;
	COLORREF m_CaptionColor;
	LOGFONT  m_CaptionLogFont;
	CImageList m_ImageList;
	CFreqMem   m_ImageListMem;
	BOOL  m_bAllowAutoSize, m_bAllowTransparency;
	BOOL  m_bAllowDragHorizontally, m_bAllowDragVertically;

private:

public:
	CNewWnd_PropertyInfo ()  { }

	virtual void init ();
	virtual BOOL Serialize (CArchive& ar);
};


/////////////////////////////////////////////////////////////////////////////
// CNewWnd window


class CNewWnd : public CMyImageButton
{
// Construction
public:
	CNewWnd();

// Attributes
public:
	DWORD m_dwWinFormID, m_dwUnitID;
	BOOL m_blInDesignMode;
	

	CNewWnd_PropertyInfo m_Properties;

// Operations
public:

	BOOL Create (HWND hParentWnd, DWORD dwStyle, UINT uID, INT x, INT y, INT cx, INT cy);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CNewWnd)
	protected:
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetProperty_AllowTansparency(void);
	void SetProperty_AllowAutoSize(void);
	BOOL SetProperty_ImageList(void);
	BOOL Initialize(void);
	virtual ~CNewWnd();

	// Generated message map functions
protected:
	//{{AFX_MSG(CNewWnd)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	//}}AFX_MSG
	afx_msg DWORD OnMyImageButtonNotify(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////



//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_NEWWND_H__CD195C4A_CEAE_415E_83A3_AE063ADF0ABC__INCLUDED_)
